package com.hp.attendance.serlvet.attendanceCardSupplement;

import com.hp.attendance.entity.Employee;
import com.hp.attendance.service.EmployeeService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;



@WebServlet("/cardSupplement")
public class cardPreServlet extends HttpServlet {
    private EmployeeService employeeService = new EmployeeService();


    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Employee emp = (Employee) req.getSession().getAttribute("emp");
        req.setAttribute("emp",emp);
        req.getRequestDispatcher("/pages/cardReplacement .jsp").forward(req,resp);

    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

    }
}
